/**
 * This file is part of Wireless TransFer.
 *
 *   Wireless TransFer is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *	
 *   Wireless TransFer is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Wireless TransFer.  If not, see <http://www.gnu.org/licenses/>.
 *
 *	 Copyright (C) 2011
 *   @author skalman
 */

package com.wirelesstransfer.server.ConnectedClients;

import java.util.List;

public interface IConnectedClients {
	
	/**
	 * 
	 * @return all clients connected to the server
	 */
	public List<ConnectedClient> getConnectedClients();
	
	/**
	 * adds a client to the server
	 * @param client to be added
	 * @return true if the client is added, false if it is not
	 */
	public boolean addClient(ConnectedClient client);
	
	/**
	 * removes a client that is connected
	 * @param cilent to be removed
	 * @return true if the client is removed, false if the client was not found
	 */
	public boolean removeClient(ConnectedClient cilent);
	
	/**
	 * returns a specific client by id
	 * @param id of the client
	 * @return connectedClient instance of the client with id
	 */
	public ConnectedClient getClientById(String id);
}
